<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>冒泡排序</title>
	</head>
	<body>

	</body>
	<script>
		let a = [23, 35, 15, 60, 88, 90];
		for (let i = 1; i < a.length; i++) {
			for (let k = 0; k < a.length - i; k++) {
				if (a[k] < a[k + 1]) {
					let temp = a[k];
					a[k] = a[k + 1];
					a[k + 1] = temp;


				}
			}

		}
		console.log('排序后的数组' + a);
	</script>
</html>